<?php
/*
 * 基本配置操作-本地静态缓存数据
 * @auth suosuo
 */
 namespace Common\Model;
 use Think\Model;
 
 class BasicModel extends  Model {
 	public function __construct() {
 		
 	}
	
	public function getLinks($data,$page,$pageSize=10) {
		$data['status']=array('neq',-1);
		$offset = ($page-1)*$pageSize;
		$list = $this->_db->where($data)->order('id desc')->limit($offset,$pageSize)->select();
	    return $list;
	}
	
	public function save ($data = array ()){
		if(!$data){
			throw_exception("没有提交的数据");
		}
		$id = F('basic_web_config',$data);
		return $id;
	}
	
	public function select () {
		return F('basic_web_config');
	}
 }
